import httpInstance from '@/utils/http.js';


//获取分类数据
export function getCategoryAPI(id) {
  return httpInstance({
   
    url: '/category',
    params: {
      id
    }
  }
 
  );
}


/**
 * 
 * @returns 
 * @id :分类id
 */
// 获取二级分类列表数据
export function getCategoryFilterAPI(id)
{
  return httpInstance({
   
    url: '/category/sub/filter', 
    params: {
      id
    }
  }
 
  );
}



  

// 获取导航数据
export function getSubCategoryAPI(data) {
  return httpInstance({
    url:'/category/goods/temporary',
    method:'POST',
    data
   
  });
}